/**
 * Created by zyy on 15/7/7.
 * zhangyuyu@superjia.com
 */
var router = require('koa-router')();
var wrap = require('co-monk')
var parse = require('co-body')

var filter = require('../common/filter')
var utils = require('../common/utils')
var render = require('../common/render')

// 首页
router.get('/', function *(next) {
    this.body = yield render('index', this.locals);
});

// 管理
router.get(['/admin', '/admin/(.*)'], function * (next) {
    this.body = yield render('admin/admin', this.locals);
})

// 收藏
router.get(['/collect', '/collect/(.*)'], function *(next) {
    this.body = yield render('collects', this.locals);
});

// 招聘
router.get('/recruit', function *(next) {
    this.body = yield render('recruit', this.locals);
});

// 关于
router.get('/about', function *(next) {
    this.body = yield render('about', this.locals);
});


module.exports = router